<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <title>SQL-WEB</title>
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='libs/CodeMirror/lib/codemirror.css') }}" />
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='libs/CodeMirror/addon/hint/show-hint.css') }}" />
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='libs/CodeMirror/addon/fold/foldgutter.css') }}" />
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='libs/CodeMirror/addon/dialog/dialog.css') }}" />
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='libs/CodeMirror/addon/display/fullscreen.css') }}" />
    <!-- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='libs/CodeMirror/theme/monokai.css') }}" /> -->

    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/sql.css') }}" />
    <style type="text/css">
        .CodeMirror {
            border-top: 1px solid #eee;
            border-bottom: 1px solid #eee;
            line-height: 1.3;
            height: auto;
        }
        .CodeMirror-linenumbers { 
            padding: 0 8px;
        }
    </style>

</head>
<body>
    <div>
        <div>
            <textarea class="sql-editor" name="code">SELECT DISTINCT
    owner, table_name, tablespace_name, num_rows
FROM
    all_tables
WHERE
    REGEXP_LIKE(table_name, '^tb_', 'i')</textarea>
        </div>
        <div>
        You need press <strong>F12</strong> to open <strong>Developer Tool</strong> to view result in <strong>Console</strong> Tab before <button class="btn-execute">execute</button><br />
        </div>
    </div>
    <div id="tabulator-example"></div>

    <script type="text/javascript" src="{{ url_for('static', filename='libs/jquery/jquery-1.12.4.min.js') }}"></script>
    
    <script type="text/javascript" src="{{ url_for('static', filename='libs/socket.io/socket.io.slim.js') }}"></script>

    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/lib/codemirror.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/search/searchcursor.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/search/search.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/dialog/dialog.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/edit/matchbrackets.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/edit/closebrackets.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/comment/comment.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/wrap/hardwrap.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/fold/foldcode.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/fold/foldgutter.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/fold/brace-fold.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/fold/indent-fold.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/fold/comment-fold.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/selection/active-line.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/display/fullscreen.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/keymap/sublime.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/mode/sql/sql.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/hint/show-hint.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static', filename='libs/CodeMirror/addon/hint/sql-hint.js') }}"></script>

    <script type="text/javascript" src="{{ url_for('static', filename='js/sql.js') }}"></script>
</body>
</html>